package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Model.Dinner;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Model.Lunch;



public class ReceiverFactory 
{
    public static Lunch lunch = null;
    public static Dinner dinner = null;

    public static Lunch createLunch() 
    {
        if(lunch == null)
            lunch = new Lunch();
        return lunch;
    }

    public static Dinner createDinner() 
    {
        if(dinner == null)
            dinner = new Dinner();          
        return dinner;
    }  
}